  /*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package UsoObjetos;

import java.awt.Point;

/**
 *
 * @author Dennis
 */

public class ConfigurarPunto {
    public static void main(String[] args) {
        
        Point localizacion = new Point(4,13);
        
        System.out.println("Empezar Localizacion:");
        System.out.println("X igual a "+localizacion.x);
        System.out.println("Y igual a "+localizacion.y);
        
        System.out.println("\nMoviendolo a (7,6)");
        localizacion.move(7, 6);
        
        System.out.println("\nLocalizacion Final:");
        System.out.println("X igual a "+localizacion.x);
        System.out.println("Y igual a "+localizacion.y);
    }
}
